#ifndef COONSSURFACE
#define COONSSURFACE

#include <base\vec3d.h>
#include <base\vec2d.h>

#include <vector>

using namespace std;

class coonsSurface {

  double *control_heights[4];
  double **coons_heights;

  vec2i surface_resolution;

public:

  void addControlHeight(int row_index, int local_ritem, double height);
  double getControlHeight(int row_index, int local_ritem);

  void computeSurface(vec2i res);
  double **getCoonsHeights();

  coonsSurface();
  ~coonsSurface();
};

#endif